package com.example.service;

import com.example.entity.User;

import java.util.List;

/**
 * @author ljw
 * @version 1.0
 * @Date 2024/9/11 20:46
 */
public interface IUserService {
    User findById(Integer id);

    User getById(Integer id);

    List<User> findAll();

    int updateById(User user);

    int deleteById(Integer id);

    User findUserByLogin(String username, String password);

    User findByName(String username);

    int add(String username, String password);

    void saveUser(User user);
}
